package nl.avans.osgi.hgttg.answers.impl;

import nl.avans.osgi.hgttg.answers.Answer;

public class AnswerImpl implements Answer {

    private String answer;
    private String from;
    
    public AnswerImpl(String from, String answer) {
        this.from = from;
        this.answer = answer;
    }
    
    @Override
    public String getAnswer() {
        return from + ": " + answer;
    }

    @Override
    public boolean isFromMice() {
        return from.equalsIgnoreCase("Benjy") || from.equalsIgnoreCase("Frankie");
    }

    @Override
    public boolean isFromComputer() {
        return from.equalsIgnoreCase("computer");
    }

}
